package com.jy.modules.cims.common.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.jy.platform.restservice.exception.AbaboonException;
import com.jy.platform.restservice.web.base.BaseController;

@Controller
@Scope("prototype")
@RequestMapping("/home1")
public class HomeController1 extends BaseController{
    private static final Logger logger =  LoggerFactory.getLogger(HomeController1.class);

    /**
     * 通过 Controller 请求 跳转 进入至相关 页面
     */
    @RequestMapping(value = "/prepareExecute/{operate}")
    public ModelAndView execute(@PathVariable("operate") String operate) throws AbaboonException {
        ModelAndView model = new ModelAndView();
        if("welcome".equals(operate)){//跳转至 查询页面
        	model.setViewName("welcome");
        }
        
        return model;
    }
     
}
